// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 定义懒加载插件

import App from './App.vue'
import router from './router'

//引用初始化样式代码
import '@/styles/common.scss'
// 全局指令注册
import { lazyPlugin } from '@/directives'
const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
// 引入全局组件插件
import { componentPlugin } from '@/components'

app.use(componentPlugin)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)


app.mount('#app')
